package titiritero.vista;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionAdapter;

import titiritero.ControladorJuego;

public class MouseDragController extends MouseMotionAdapter {

	private ControladorJuego controlador; 
	
	public MouseDragController(ControladorJuego unControlador) {
		this.controlador = unControlador;
	}
	
        @Override
	public void  mouseDragged(MouseEvent e){
		this.controlador.despacharMouseDrag(e.getX(), e.getY());

	}
}
